From: Florian Müllner Date: Thu, 9 Oct 2014 12:07:22 +0000 (+0200) Subject: overviewControls: Fix thinko in SlideLayout X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2040 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a4475465f1f2901b4b51bc72573c6ef4254f9bdd;p=gnome-shell.git overviewControls: Fix thinko in SlideLayout Controls that slide left are located on the left, so the offset to align them with the corresponding edge is always 0. It's controls on the right that need a different offset when the available width exceeds the child's width. https://bugzilla.gnome.org/show_bug.cgi?id=728899 --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 02423f2d8..5dd2be4ae 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -64,7 +64,7 @@ const SlideLayout = new Lang.Class({ // flags only determine what to do if the allocated box is bigger // than the actor's box. let realDirection = getRtlSlideDirection(this._direction, child); - let alignX = (realDirection == SlideDirection.LEFT) ? (availWidth - natWidth) : 0; + let alignX = (realDirection == SlideDirection.RIGHT) ? (availWidth - natWidth) : 0; let actorBox = new Clutter.ActorBox(); actorBox.x1 = box.x1 + alignX + this._translationX;